package cn.jiaqiang.chatgpt.data.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * User: jia-qiang
 * Date: 2024-04-09
 * Time: 17:19
 */
@Getter
@AllArgsConstructor
public enum BehaviorMessageChannel {
    OPEN_NEW_USER_ACCOUNT("401"),
    DEFAULT("default"),
    ;

    private final String content;

    public static BehaviorMessageChannel getContent(String content) {
        switch (content) {
            case "401":
                return BehaviorMessageChannel.OPEN_NEW_USER_ACCOUNT;
            case "default":
                return BehaviorMessageChannel.DEFAULT;
            default:
                return BehaviorMessageChannel.DEFAULT;
        }
    }
}
